/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Controlador;

import Modelo.manejarIniciarSession;
//import indexInicio;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;


public class ControladorInicio implements ActionListener {
//private FrmInicio fr;
manejarIniciarSession i;

   public ControladorInicio(FrmInicio vista) {
      fr=vista;
      i=new manejarIniciarSession();
    }



    public void actionPerformed(ActionEvent e) {

         if (e.getActionCommand().equals("Aceptar")) {

             i.obtenerdato(fr);
             
        }
        if (e.getActionCommand().equals("Cancelar")) {

            System.exit(0);

        }


    }

  

}
